package com.zingrow.web.common.utils;

import java.util.List;

public class AnalyzeResult<T> {
	//解析是否成功
	private boolean success;
	//保存错误信息
	private String errorMessage;
	//解析后的数据
	private List<T> list;
	//构造方法
	public AnalyzeResult(){
		
	}
	
	public AnalyzeResult(boolean success,String errorMessage,List<T> list){
		super();
		this.success = success;
		this.errorMessage = errorMessage;
		this.list = list;
	}
	
	public void setResult(boolean success,String errorMessage,List<T> list){
		this.success = success;
		this.errorMessage = errorMessage;
		this.list = list;
	}

	public boolean isSuccess() {
		return success;
	}

	public void setSuccess(boolean success) {
		this.success = success;
	}

	public String getErrorMessage() {
		return errorMessage;
	}

	public void setErrorMessage(String errorMessage) {
		this.errorMessage = errorMessage;
	}

	public List<T> getList() {
		return list;
	}

	public void setList(List<T> list) {
		this.list = list;
	}
	
	
}
